﻿using DX;
using DX.ViewModels;
using System.Threading.Tasks;
using Tools.Plugins.NodeJS.Views;

namespace Tools.Plugins.NodeJS.ViewModels
{
    [ViewType(typeof(SwitchNodeForm))]
    public partial class SwitchNodeViewModel : ViewModel
    {

        public SwitchNodeViewModel(IMessageCenter messageCenter)
        {
            Title = "切换Node Js 版本";
            this.messageCenter = messageCenter;
        }
        private readonly IMessageCenter messageCenter;
        protected override Task<bool> OnCanClose()
        {
            return messageCenter.Confirmation("还没保存","是否关闭！");
        }
    }
}
